﻿@model BanDTBLL.tai_khoan

@{
    ViewBag.Title = "Create";
}

<h1 align="center" style="color:Blue">ĐĂNG KÍ TÀI KHOẢN</h1>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
@*    <fieldset>*@
        @*<legend>tai_khoan</legend>*@

        @*<div class="editor-label">
            @Html.LabelFor(model => model.ma)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ma)
            @Html.ValidationMessageFor(model => model.ma)
        </div>*@

        @*<div class="editor-label">
            @Html.LabelFor(model => model.ma_loai_tai_khoan, "loai_tai_khoan")
        </div>
        <div class="editor-field">
            @Html.DropDownList("ma_loai_tai_khoan", String.Empty)
            @Html.ValidationMessageFor(model => model.ma_loai_tai_khoan)
        </div>*@
        <table align="center" style="font-size:20px">
            <tr>
                <td>
                    <div class="editor-label">
                        Họ tên
                    </div>
                </td>
                <td>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.ho_ten)
                        @Html.ValidationMessageFor(model => model.ho_ten)
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <div class="editor-label">
                        CMND
                    </div>
                </td>
                <td>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.cmnd)
                        @Html.ValidationMessageFor(model => model.cmnd)
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <div class="editor-label">
                        Tên đăng nhập
                    </div>
                </td>
                <td>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.ten_dang_nhap)
                        @Html.ValidationMessageFor(model => model.ten_dang_nhap)
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <div class="editor-label">
                        Mật khẩu
                    </div>
                </td>
                <td>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.mat_khau)
                        @Html.ValidationMessageFor(model => model.mat_khau)
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <div class="editor-label">
                        Mật khẩu nhập lại
                    </div>
                </td>
                <td>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.mat_khau_nhap_lai)
                        @Html.ValidationMessageFor(model => model.mat_khau_nhap_lai)
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <div class="editor-label">
                        Địa chỉ
                    </div>
                </td>
                <td>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.dia_chi)
                        @Html.ValidationMessageFor(model => model.dia_chi)
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <div class="editor-label">
                        Email
                    </div>
                </td>
                <td>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.email)
                        @Html.ValidationMessageFor(model => model.email)
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <div class="editor-label">
                        Điện thoại
                    </div>
                </td>
                <td>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.dien_thoai)
                        @Html.ValidationMessageFor(model => model.dien_thoai)
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    <p>
                        <input type="submit" value="Đăng ký" />
                    </p>
                </td>
            </tr>
        </table>                           
        
  @*  </fieldset>*@
}

@*<div>
    @Html.ActionLink("Back to List", "Index")
</div>
*@